package cn.jcby.app.lebu.service.impl;

import cn.jcby.app.config.SmsConfig;
import cn.jcby.app.lebu.service.SmsService;
import cn.jcby.app.lebu.utils.MessageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: lihaotian
 * @since: 2023/12/27 11:18
 * @description
 **/
@Service("smsService")
public class SmsServiceImpl implements SmsService {

    @Autowired
    private SmsConfig smsConfig;
    @Override
    public void sendSms(String phone, String code) {
        MessageUtils.sms(phone, code, smsConfig);
    }
}
